import React, { Component } from 'react';
import BasicComponent from './basicComponent';


/**
 * 高阶组件定义方法
 * @param {*} BasicComponent 
 */
let withHighLevel =(BasicComponent)=>{

    return class extends Component {
        //此处可封装高阶组件自定义方法
        render() {
            return (
                <BasicComponent
                    {...this.props}
                />
            );
        }
    }
}


let HighLevelComponent = withHighLevel(BasicComponent)

export default HighLevelComponent;